package org.example.json;


public abstract class AbstractJson implements Json
{
  private int id;


  public AbstractJson()
  {
    super();
  }


  public AbstractJson(int id, String code)
  {
    this();
    this.id = id;
  }


  public boolean newElement()
  {
    return getId() == 0;
  }


  public int getId()
  {
    return id;
  }


  /*
   *
   */
  public void setId(int id)
  {
    this.id = id;
  }

}
